home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / smc16.exe / OEMSETUP.INF < prev    next >
INI File  |  1994-01-28  |  35KB  |  1,043 lines

  1. ;--
  2. ;
  3. ; SMC.INF FOR Ethernet adapters
  4. ;
  5. ;--
  6.  
  7. [Identification]
  8.     OptionType = NetAdapter
  9. [PlatformsSupported]
  10.     MCA     
  11.     ISA
  12.     EISA
  13.     "Jazz-Internal Bus"
  14. [Options]
  15.     SMC8216
  16.     SMC8013
  17.     SMC8013WPA
  18.     SMC8013EPA
  19.  
  20. [CardInfo]
  21. SMCISA = 0, 0, smcisa, 0
  22. SMC8013WPA = 201, 97, wd8013wpa, 25033
  23. SMC8013EPA = 200, 97, wd8013epa, 25032
  24.  
  25. [FileConstants]
  26. ParamInf        = "NCPARAM.INF"
  27. UtilityInf      = "UTILITY.INF"
  28. subroutineinf   = "SUBROUTN.INF"
  29. SoftwareType    = "driver"
  30. Exit_Code       = 0
  31. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  32. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  33. CardList = ^(CardInfo,0)
  34. Card1ByteList = ^(CardInfo, 1)
  35. Card2ByteList = ^(CardInfo, 2)
  36. CardRuleList = ^(CardInfo, 3)
  37. CardIDList = ^(CardInfo, 4 )
  38. Card1Byte = *($(Card1ByteList), ~($(CardList), $(Option)))
  39. Card2Byte = *($(Card2ByteList), ~($(CardList), $(Option)))
  40. NETCARD_ID = *($(CardIDList), ~($(CardList), $(Option)))
  41. CardRule = *($(CardRuleList), ~($(CardList), $(Option)))
  42.  
  43. MCAEthernetCards  = { SMC8003EA, SMC8003WA, SMC8013EA, SMC8013WA, +
  44.           SMC8013WPA, SMC8013EPA }
  45.  
  46. ISAEthernetCards = { SMC8013, SMC8216, SMCISA }
  47.  
  48.  
  49. TokenRingCards = { WD8115TR }
  50. Manufacturer    = "SMC"
  51. ProductMajorVersion     = "1"
  52. ProductMinorVersion     = "0"
  53. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  54. ProductSoftwareName     = "SMC8000N"
  55. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smc8000n.sys"
  56. NetRuleSoftwareType     = "smc8000nSys ndisDriver smc8000nDriver"
  57. NetRuleSoftwareUse      = $(SoftwareType)
  58. NetRuleSoftwareBindForm = """Smc8000nDriver"" yes no container"
  59. NetRuleSoftwareClass    = {"smc8000nDriver basic"}
  60. ProductHardwareName     = $(Option)
  61. ;NetRuleHardwareType     = "smcisa smcisaAdapter"
  62. NetRuleHardwareType     = $(CardRule)" "$(CardRule)"Adapter"
  63. NetRuleHardwareTypeMCA  = $(CardRule)" "$(CardRule)"Adapter"
  64. NetRuleHardwareBindForm = " yes yes container"
  65. ;NetRuleHardwareClass    = {"smcisaAdapter basic"}
  66. NetRuleHardwareClass    = {""$(CardRule)"Adapter basic"}
  67. NetRuleHardwareClassMCA = {""$(CardRule)"Adapter basic"}
  68. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  69. ParamKeyName    = $(!NTN_ServiceBase)$(ProductHardwareName)"\Parameters"
  70. [GeneralConstants]
  71. from      = ""
  72. to        = ""
  73. ExitCodeOk     = 0
  74. ExitCodeCancel = 1
  75. ExitCodeFatal  = 2
  76. KeyNull         = ""
  77. MAXIMUM_ALLOWED   = 33554432
  78. RegistryErrorIndex = NO_ERROR
  79. KeyProduct      = ""
  80. KeyParameters   = ""
  81. TRUE            = 1
  82. FALSE           = 0
  83. NoTitle            = 0
  84. ExitState   = "Active"
  85. OldVersionExisted = $(FALSE)
  86. DriverPath      = $(!STF_NTPATH)\drivers
  87. [date]
  88.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  89. [Identify]
  90.     read-syms Identification
  91.     set Status     = STATUS_SUCCESSFUL
  92.     set Identifier = $(OptionType)
  93.     set Media      = #("Source Media Descriptions", 3, 1)
  94.     Return $(Status) $(Identifier) $(Media)
  95. [ReturnOptions]
  96.     set Status        = STATUS_FAILED
  97.     set OptionList     = {}
  98.     set OptionTextList = {}
  99.     set LanguageList = ^(LanguagesSupported, 1)
  100.     Ifcontains(i) $($0) in $(LanguageList)
  101.     ifstr(i) $($1) == ""
  102.        goto returnoptions
  103.     endif
  104.     set PlatformList = ^(PlatformsSupported, 1)
  105.     Ifcontains(i) $($1) in $(PlatformList)
  106.        goto returnoptions
  107.     else
  108.        set Status = STATUS_NOTSUPPORTED
  109.        goto finish_ReturnOptions
  110.     endif
  111.     else
  112.     set Status = STATUS_NOLANGUAGE
  113.     goto finish_ReturnOptions
  114.     endif
  115. returnoptions = +
  116.     set OptionList     = ^(Options, 1)
  117.     set OptionTextList = ^(OptionsText$($0), 1)
  118.     set Status         = STATUS_SUCCESSFUL
  119. finish_ReturnOptions = +
  120.     Return $(Status) $(OptionList) $(OptionTextList)
  121. [InstallOption]
  122.     set Option   = $($1)
  123.  
  124.     ifstr $(Option) == SMC8216
  125.  
  126.     Debug-Output "OEMNADsmc.INF: in contains option is: "$($1)
  127.  
  128.         set Option = SMCISA
  129.     endif
  130.  
  131.     ifstr $(Option) == SMC8013
  132.  
  133.     Debug-Output "OEMNADsmc.INF: in contains option is: "$($1)
  134.  
  135.  
  136.         set Option = SMCISA
  137.     endif
  138.  
  139.     Debug-Output "OEMNADsmc.INF: after contains option is: "$(Option)
  140.  
  141.  
  142.     set SrcDir   = $($2)
  143.     set AddCopy  = $($3)
  144.     set DoCopy   = $($4)
  145.     set DoConfig = $($5)
  146.     set LanguageList = ^(LanguagesSupported, 1)
  147.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  148.     Return STATUS_NOLANGUAGE
  149.     endif
  150.     Debug-Output "OEMNADWD.INF: STF_CWDIR is: "$(!STF_CWDIR)
  151.     Debug-Output "OEMNADWD.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  152.     set-subst LF = "\n"
  153.     read-syms GeneralConstants
  154.     read-syms FileConstants
  155.     Shell $(UtilityInf), GetBindingInfo, "WD"
  156.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  157.     Debug-Output "ShellCode error: cannot get an error string."
  158.     goto ShellCodeError
  159.     endif
  160.  
  161.     Debug-Output "OEMNADsmc.INF: got binding info ok "
  162.  
  163.     set NetRuleSoftwareBindable = $($R1)
  164.     read-syms DialogConstants$(!STF_LANGUAGE)
  165.     ifstr(i) $(!NTN_Origination) == "NCPA"
  166.     set Continue = $(OK)
  167.     endif
  168.     read-syms FileConstants$(!STF_LANGUAGE)
  169.     detect date
  170.     set-title  $(FunctionTitle)
  171.     set to   = Begin
  172.     set from = Begin
  173.     set CommonStatus = STATUS_SUCCESSFUL
  174.     EndWait
  175. Begin = +
  176.     set ActivateDetection = FALSE
  177.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  178.         set StartLabel = removeadapter
  179.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  180.         set StartLabel = UpgradeSoftware
  181.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  182.         set StartLabel = bindingadapter
  183.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  184.         set CommonStatus = STATUS_REBOOT
  185.         set ActivateDetection = TRUE
  186.         set StartLabel = configureadapter
  187.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  188.             Debug-Output "Cannot configure the DEC 100 driver software."
  189.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  190.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  191.             Debug-Output "ShellCode error: cannot get an error string."
  192.             goto ShellCodeError
  193.         endif
  194.         set Error = $($R0)
  195.         set from = end
  196.         set to = end
  197.         goto nonfatalinfo
  198.     endif
  199.     else
  200.         set StartLabel = installadapter
  201.         set OEM_ABANDON_OPTIONS = {}
  202.         set OEM_ABANDON_SOFTWARE = FALSE
  203.         set OEM_ABANDON_ON = TRUE
  204.         set ActivateDetection = TRUE
  205.     endif
  206.  
  207.     ifstr $(Option) != SMCISA
  208.         goto skipdetection
  209.     endif
  210.  
  211.     Debug-Output "OEMNADWD.INF: =================================================="
  212.     Debug-Output "OEMNADWD.INF: STF_CWDIR is: "$(!STF_CWDIR)
  213.     Debug-Output "OEMNADWD.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  214.     Debug-Output "OEMNADWD.INF: Option is: "$(Option)
  215.     Debug-Output "OEMNADWD.INF: !STF_NCDETECT  is: "$(!STF_NCDETECT)
  216.     Debug-Output "OEMNADWD.INF: !STF_NCOPTION  is: "$(!STF_NCOPTION)
  217.     Debug-Output "OEMNADWD.INF: !STF_NCDETCARD is: "$(!STF_NCDETCARD)
  218.     Debug-Output "OEMNADWD.INF: !STF_NCDETINFO is: "$(!STF_NCDETINFO)
  219.     Debug-Output "OEMNADWD.INF: =================================================="
  220.     Set DetectedCard = FALSE
  221.  
  222.     Ifstr(i) $(ActivateDetection) != TRUE
  223.     Goto skipdetection
  224.     Endif
  225.     Set TypeList = {{IRQ,IRQ_List,IRQLevel},+
  226.             {IOADDR, IOBaseAddressDecList, IOBaseValue},+
  227.             {MEMADDR, WinBaseAddressDecList, WinBaseValue}}
  228.     Debug-Output "OEMNADWD.INF: Calling Param_BuildTypeLists"
  229.     Shell $(ParamInf) Param_BuildTypeLists $(Option) $(TypeList)
  230.     Set Status = $($R0)
  231.     ifstr(i) $(Status) != STATUS_SUCCESSFUL
  232.     Goto fataldetect
  233.     Endif
  234.     Debug-Output "OEMNADWD.INF: Calling Param_SetDefaults"
  235.     Shell $(ParamInf) Param_SetDefaults {}
  236.     Shell $(ParamInf) HexListFromDecList $(IOBaseAddressDecList)
  237.     Set IOBaseAddressHexList = $($R0)
  238.     Shell $(ParamInf) HexListFromDecList $(WinBaseAddressDecList)
  239.     Set WinBaseAddressHexList = $($R0)
  240.     Ifstr(i) $(!STF_NCDETECT) == YES
  241.     Ifstr(i) $(!STF_NCOPTION) == $(Option)
  242.        Set DetectedCard = TRUE
  243.        Debug-Output "OEMNADWD.INF: Setting DetectedCard to TRUE"
  244.     Endif
  245.     Endif
  246. skipdetection =+
  247.     set from = $(fatal)
  248.     set to = $(fatal)
  249.     goto $(StartLabel)
  250. installadapter = +
  251.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  252.     Ifstr $(KeyProduct) != $(KeyNull)
  253.     CloseRegKey $(KeyProduct)
  254.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  255.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  256.            $(ProductVersion)
  257.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  258.            Debug-Output "ShellCode error: cannot get an error string."
  259.            goto ShellCodeError
  260.        endif
  261.        goto end
  262.     else
  263.        Shell $(UtilityInf), CardExistedDlg
  264.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  265.            Debug-Output "ShellCode error: cannot get an error string."
  266.            goto ShellCodeError
  267.        endif
  268.        ifstr(i) $($R1) != "OK"
  269.            set CommonStatus = STATUS_USERCANCEL
  270.            goto end
  271.        endif
  272.        set OldVersionExisted = $(TRUE)
  273.     endif
  274.    endif
  275.  
  276. ;MCA
  277.  
  278.     Ifstr $(Option) != SMCISA
  279.         Goto installproduct
  280.     Endif
  281.  
  282.     Ifstr(i) $(DetectedCard) != TRUE
  283.     Goto adaptersetup
  284.     Endif
  285.     StartWait
  286.     Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
  287.     EndWait
  288.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  289.     Goto adaptersetup
  290.     Endif
  291.     Set DetectedParams = $($R1)
  292.     Debug-Output "OEMNADWD.INF: Calling Param_SetDefaults to merge detected params"
  293.     Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
  294.     goto adapteroptions
  295. configureadapter = +
  296.  
  297.     ifstr $(Option) != SMCISA
  298.         goto end
  299.     endif
  300.  
  301.     Ifstr $(KeyProduct) == $(KeyNull)
  302.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  303.     Ifstr $(KeyProduct) == $(KeyNull)
  304.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  305.         Debug-Output "Cannot find component product key"
  306.         goto fatalregistry
  307.     Endif
  308.     Endif
  309.     Debug-Output "INF: Shelling to FindService"
  310.     Shell $(UtilityInf) FindService, $(KeyProduct)
  311.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  312.     Debug-Output "INF: FindService shell failure"
  313.     Goto ShellCodeError
  314.     Endif
  315.     Ifstr(i) $($R0) != NO_ERROR
  316.     Debug-Output "INF: FindService Shell error: "$($R0)
  317.     Goto fatalregistry
  318.     endif
  319.     set KeyParameters = $($R2)
  320.     CloseRegKey $($R1)
  321.     Ifstr $(KeyParameters) == $(KeyNull)
  322.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  323.     Debug-Output "Cannot find component service"
  324.     goto fatalregistry
  325.     endif
  326.     set OldVersionExisted = $(TRUE )
  327.     set ValueName = ""
  328.     set ValueData = ""
  329.     set ValueStr  = ""
  330.     set ValueList = {}
  331.     EnumRegValue $(KeyParameters) ValueList
  332.     ForListDo $(ValueList)
  333.     set ValueItem = $($)
  334.     set ValueName = *($(ValueItem),1)
  335.     set ValueData = *($(ValueItem),4)
  336.     Ifstr(i) $(ValueName) == "InterruptNumber"
  337.         set IRQLevel = $(ValueData)
  338.     else-Ifstr(i) $(ValueName) == "IOBaseAddress"
  339.         set IOBaseValue = $(ValueData)
  340.     else-Ifstr(i) $(ValueName) == "MemoryMappedBaseAddress"
  341.         set WinBaseValue = $(ValueData)
  342.     endif
  343.     EndForListDo
  344. adaptersetup =+
  345.     Shell $(ParamInf) Param_ParameterConfidence
  346.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  347.     Debug-Output "OEMNADWD.INF: parameter confidence too low to bypass configuration"
  348.     Goto adapteroptions
  349.     Endif
  350.     Ifstr(i) $(DetectedCard) == TRUE
  351.     Ifstr(i) $(!STF_INSTALL_MODE) != CUSTOM
  352.         Goto adapterverify
  353.     Endif
  354.     Endif
  355.     goto adapteroptions
  356. adapteroptions = +
  357.     set from = adapteroptions
  358.     set WinBaseAddress = *($(WinBaseAddressHexList), ~($(WinBaseAddressDecList),+
  359.     $(WinBaseValue)))
  360.     set IOBaseAddress = *($(IOBaseAddressHexList), ~($(IOBaseAddressDecList),+
  361.     $(IOBaseValue)))
  362.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  363.     ui start "InputDlg"
  364.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  365.     set IRQLevel = $(Combo1Out)
  366.     set WinBaseAddress = $(Combo2Out)
  367.     set IOBaseAddress = $(Combo3Out)
  368.     ui pop 1
  369.     else-ifstr(i) $(DLGEVENT) == "BACK"
  370.     set CommonStatus = STATUS_USERCANCEL
  371.     Debug-Output "Action: exit. Bye."
  372.     ui pop 1
  373.     goto end
  374.     else
  375.     ui pop 1
  376.     Debug-Output "Action: unknown. Bye."
  377.     goto end
  378.     endif
  379.     set WinBaseValue = *($(WinBaseAddressDecList), ~($(WinBaseAddressHexList),+
  380.     $(WinBaseAddress)))
  381.     set IOBaseValue = *($(IOBaseAddressDecList), ~($(IOBaseAddressHexList),+
  382.     $(IOBaseAddress)))
  383. adapterverify =+
  384.     Ifstr(i) $(DetectedCard) != TRUE
  385.         Goto skipoptions
  386.     Endif
  387.     Debug-Output "OEMNADWD.INF: Calling Param_VerifyCard"
  388.     Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
  389.     Ifstr(i) $($R0) == STATUS_SUCCESSFUL
  390.     Debug-Output "OEMNADWD.INF: Param_VerifyCard succeeded"
  391.     Goto skipoptions
  392.     Endif
  393.     Set from = adapteroptions
  394.     Set to = skipoptions
  395.     Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
  396.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  397.     Debug-Output "ShellCode error: cannot get an error string."
  398.     goto ShellCodeError
  399.     endif
  400.     set Error = $($R0)
  401.     Goto Warning
  402.  
  403. ;MCA
  404.  
  405. installproduct = +
  406.  
  407.     StartWait
  408.  
  409.     Shell $(UtilityInf), MCAFindBus, $(Card1Byte), $(Card2Byte)
  410.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  411.         goto ShellCodeError
  412.     endif
  413.     ifstr $($R0) != "NO_ERROR"
  414.         set Error = $($R0)
  415.     goto fatal
  416.     endif
  417.     ifstr(i) $($R1) == {}
  418.         set Error = $(CANNOT_FIND_ANY_CARD)
  419.         set CommonStatus = STATUS_USERCANCEL
  420.         set from = "end"
  421.         goto nonfatal
  422.     endif
  423.     set AdapterList = $($R1)
  424.  
  425. ;    goto mcaincluded
  426.  
  427. skipoptions = +
  428.     ifint $(OldVersionExisted) == $(TRUE)
  429.         ifstr(i) $(!NTN_InstallMode) == configure
  430.             ifstr $(Option) == SMCISA
  431.                 goto writeparameters
  432. ;MCA
  433.             else
  434.                 set Error = "Configure: Sorry, not yet implemented."
  435.                 goto fatal
  436.             endif
  437.         endif
  438.     endif
  439.  
  440. mcaincluded = +
  441.     set AdapterList = $($R1)
  442.     ifint $(OldVersionExisted) == $(FALSE)
  443.         ifstr(i) $(!NTN_InstallMode) == "install"
  444.            Ifstr(i) $(DoCopy) == "YES"
  445.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  446.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  447.                   Goto ShellCodeError
  448.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  449.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  450.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  451.                       goto ShellCodeError
  452.                   endif
  453.                   set Error = $($R0)
  454.                   Goto fatal
  455.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  456.                   Goto successful
  457.               Endif
  458.               Set SrcDir = $($R1)
  459.            Endif
  460.            install "Install-Option"
  461.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  462.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  463.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  464.                   goto ShellCodeError
  465.               endif
  466.               set Error = $($R0)
  467.               goto fatal
  468.            endif
  469.         endif
  470.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  471.             $(ProductSoftwareName), +
  472.             $(ProductSoftwareName), +
  473.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  474.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  475.             $(NetEventDLL)
  476.         Set OEM_ABANDON_SOFTWARE = TRUE
  477.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  478.             Debug-Output "ShellCode error"
  479.             goto ShellCodeError
  480.         endif
  481.     set RegistryErrorIndex = $($R0)
  482.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  483.         EndWait
  484.         Debug-Output "Registry error: add software components"
  485.         CloseRegKey $($R1)
  486.         CloseRegKey $($R2)
  487.         CloseRegKey $($R3)
  488.         CloseRegKey $($R4)
  489.         CloseRegKey $($R5)
  490.         goto fatalregistry
  491.     endif
  492.     Set SoftProductKey      = $($R1)
  493.     Set SoftNetRuleKey      = $($R2)
  494.     Set SoftServiceKey      = $($R3)
  495.     Set SoftParameterKey    = $($R4)
  496.     Set SoftLinkageKey      = $($R5)
  497.  
  498.     Debug-Output "softlinkage #1 :"$($R5)
  499.  
  500.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  501.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  502.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  503.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  504.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  505.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  506.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  507.     Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  508.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  509.         Debug-Output "ShellCode error."
  510.         goto ShellCodeError
  511.     endif
  512.     set RegistryErrorIndex = $($R0)
  513.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  514.         EndWait
  515.         Debug-Output "Resgitry error: add value list."
  516.         CloseRegKey $(SoftProductKey)
  517.         CloseRegKey $(SoftNetRuleKey)
  518.         CloseRegKey $(SoftServiceKey)
  519.         CloseRegKey $(SoftParameterKey)
  520.         CloseRegKey $(SoftLinkageKey)
  521.         goto fatalregistry
  522.     endif
  523.  
  524.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  525.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  526.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  527.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  528.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  529.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  530.     Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  531.  
  532.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  533.         Debug-Output "ShellCode error."
  534.         goto ShellCodeError
  535.     endif
  536.     set RegistryErrorIndex = $($R0)
  537.     CloseRegKey $(SoftProductKey)
  538.     CloseRegKey $(SoftNetRuleKey)
  539.     CloseRegKey $(SoftServiceKey)
  540.     CloseRegKey $(SoftParameterKey)
  541.     CloseRegKey $(SoftLinkageKey)
  542.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  543.         EndWait
  544.         Debug-Output "Resgitry error: add value list."
  545.         goto fatalregistry
  546.     endif
  547.     endif
  548.  
  549.     set BusNum = *($($),1)
  550.  
  551. ;MCA
  552.  
  553.     ifstr $(Option) != SMCISA
  554.         ForListDo $(AdapterList)
  555.             set BusNum = *($($),1)
  556.             set SlotNum = *($($),2)
  557.             Debug-Output $(BusNum)
  558.             Debug-Output $(SlotNum)
  559.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  560.             $(SlotNum), $(ProductHardwareDescriptionMCA), $(ProductHardwareName)
  561.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  562.             goto ShellCodeError
  563.         endif
  564.         ifstr $($R0) != "NO_ERROR"
  565.             set Error = $($R0)
  566.             goto fatal
  567.         endif
  568.         ifstr(i) $($R1) != "YES"
  569.     Debug-Output " what is this : "$(R4)
  570.     Debug-Output $($R4)
  571.         Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  572.         ifint $($R4) != -1
  573.            Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  574.         endif
  575.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  576.             goto ShellCodeError
  577.         endif
  578.         set RegistryErrorIndex = $($R0)
  579.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  580.             EndWait
  581.             CloseRegKey $($R1)
  582.             CloseRegKey $($R2)
  583.             CloseRegKey $($R3)
  584.             goto fatalregistry
  585.         endif
  586.         Set HardNetCardKey      = $($R1)
  587.         Set HardNetRuleKey      = $($R2)
  588.         Set HardParameterKey    = $($R3)
  589.         set AdapterNumber = $($R4)
  590.         set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  591.                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitleMCA)},+
  592.                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescriptionMCA)},+
  593.                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  594.                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  595.                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  596.         Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  597.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  598.             goto ShellCodeError
  599.         endif
  600.         Shell $(UtilityInf), GetBusTypeNum
  601.         set BusTypeNum = $($R1)
  602.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  603.             Debug-Output "ShellCode error."
  604.             goto ShellCodeError
  605.         endif
  606.         IfContains $(Option) in $(MCAEthernetCards)
  607.             set CardMediaType = 1
  608.             set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  609.                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  610.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  611.                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  612.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)}}
  613.         else
  614.             set CardMediaType = 2
  615.             set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  616.                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  617.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  618.                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  619.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)},+
  620.                        {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD), 8192}}
  621.         endif
  622.         Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  623.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  624.             goto ShellCodeError
  625.         endif
  626.         set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  627.         set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  628.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareTypeMCA)},+
  629.                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  630.                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClassMCA)}, +
  631.                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  632.         Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  633.         CloseRegKey $(HardNetCardKey)
  634.         CloseRegKey $(HardNetRuleKey)
  635.         CloseRegKey $(HardParameterKey)
  636.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  637.             goto ShellCodeError
  638.         endif
  639.         endif
  640.         EndForListDo
  641.         EndWait
  642.         goto successful
  643.     endif
  644.  
  645.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  646.     ifint $($R4) != -1
  647.     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  648.     endif
  649.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  650.     Debug-Output "Cannot add hardware component"
  651.     goto ShellCodeError
  652.     endif
  653.     set RegistryErrorIndex = $($R0)
  654.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  655.     EndWait
  656.     Debug-Output "Registry error: add hardware component"
  657.     Debug-Output $(RegistryErrorIndex)
  658.     CloseRegKey $($R1)
  659.     CloseRegKey $($R2)
  660.     CloseRegKey $($R3)
  661.     goto fatalregistry
  662.     endif
  663.     set KeyParameters = $($R3)
  664.     set KeyAdapterRules = $($R2)
  665.     set AdapterNumber = $($R4)
  666.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  667.                {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  668.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  669.                {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  670.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  671.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  672.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  673.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  674.     Debug-Output "ShellCode error"
  675.     goto ShellCodeError
  676.     endif
  677.     CloseRegKey $($R1)
  678.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  679.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  680.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  681.             {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  682.             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  683.             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  684.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  685.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  686.     Debug-Output "ShellCode error."
  687.     goto ShellCodeError
  688.     endif
  689.     set RegistryErrorIndex = $($R0)
  690.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  691.     EndWait
  692.     Debug-Output "Resgitry error: add value list."
  693.     CloseRegKey $(KeyParameters)
  694.     CloseRegKey $(KeyAdapterRules)
  695.     goto fatalregistry
  696.     endif
  697.     CloseRegKey $(KeyAdapterRules)
  698.     goto writeparameters
  699. writeparameters = +
  700.     Shell $(UtilityInf), GetBusTypeNum
  701.     set BusTypeNum = $($R1)
  702.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  703.     Debug-Output "ShellCode error."
  704.     goto ShellCodeError
  705.     endif
  706.     IfContains $(Option) in $(ISAEthernetCards)
  707.     set CardMediaType = 1
  708.     set NewValueList = {+
  709.                {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
  710.               {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  711.                {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  712.                {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseValue)},+
  713.                {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(WinBaseValue)},+
  714.                {MediaType,$(NoTitle),$(!REG_VT_DWORD),$(CardMediaType)}+
  715.                }
  716.     else
  717.     set CardMediaType = 2
  718.     set NewValueList = {+
  719.                {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
  720.               {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  721.                {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  722.                {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseValue)},+
  723.                {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(WinBaseValue)},+
  724.                {MediaType,$(NoTitle),$(!REG_VT_DWORD),$(CardMediaType)},+
  725.                {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD),8192}+
  726.                }
  727.     endif
  728.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  729.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  730.     Debug-Output "ShellCode error."
  731.     goto ShellCodeError
  732.     endif
  733.     set RegistryErrorIndex = $($R0)
  734.     CloseRegKey $(KeyParameters)
  735.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  736.     Debug-Output "Registry error: Add value list"
  737.     goto fatalregistry
  738.     endif
  739.     EndWait
  740.     goto successful
  741. bindingadapter =+
  742.     set Error = "Binding: Sorry, not yet implemented."
  743.     goto fatal
  744. removeadapter = +
  745.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  746.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  747.         $(ProductSoftwareName)
  748.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  749.         Debug-Output "ShellCode error"
  750.         goto ShellCodeError
  751.     endif
  752.     set RegistryErrorIndex = $($R0)
  753.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  754.         goto fatalregistry
  755.     endif
  756.     else
  757.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  758.         $(ProductSoftwareName), $(!NTN_RegBase)
  759.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  760.         Debug-Output "ShellCode error"
  761.         goto ShellCodeError
  762.     endif
  763.     set RegistryErrorIndex = $($R0)
  764.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  765.         goto fatalregistry
  766.     endif
  767.     endif
  768.     goto end
  769. UpgradeSoftware = +
  770.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  771.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  772.     Ifstr $(KeyProduct) != $(KeyNull)
  773.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  774.         set Version = *($(VersionInfo), 4)
  775.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  776.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  777.         Debug-Output "ShellCode error"
  778.         goto ShellCodeError
  779.         endif
  780.         set !UG_Filename = $($R0)
  781.         ifstr(i) $(!UG_Filename) != ""
  782.         install "Install-Update"
  783.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  784.             goto fatal
  785.         endif
  786.         endif
  787.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  788.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  789.         ifint $(Version) != $(ProductVersion)
  790.         endif
  791.         CloseRegKey $(KeyProduct)
  792.     else
  793.         goto fatalregistry
  794.     endif
  795.     else
  796.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  797.           $(MAXIMUM_ALLOWED) NetworkCardKey
  798.     Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  799.         GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  800.         set ServiceName = *($(ServiceNameInfo), 4)
  801.         OpenRegKey $(NetworkCardKey) "" "NetRules" +
  802.         $(MAXIMUM_ALLOWED) NetRuleKey
  803.         Ifstr(i) $(NetRuleKey) != $(KeyNull)
  804.         else
  805.         goto fatalregistry
  806.         endif
  807.         CloseRegKey $(NetRules)
  808.         CloseRegKey $(NetworkCardKey)
  809.     else
  810.         goto fatalregistry
  811.     endif
  812.     OpenRegKey $(!REG_H_LOCAL) "" +
  813.           $(!NTN_ServiceBase)"\"$(ServiceName) +
  814.           $(MAXIMUM_ALLOWED) ServiceKey
  815.     Ifstr(i) $(ServiceKey) != $(KeyNull)
  816.         CloseRegKey $(ServiceKey)
  817.     else
  818.         goto fatalregistry
  819.     endif
  820.     endif
  821.  
  822.  
  823.     ;
  824.     ; All I want to do is copy a new driver over the old one
  825.     ;
  826.  
  827.  
  828.       install "Install-Update"
  829.  
  830.       ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  831.       goto fatal
  832.       endif
  833.  
  834.     goto end
  835. successful = +
  836.     goto end
  837. abandon = +
  838.     ForListDo $(OEM_ABANDON_OPTIONS)
  839.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  840.         $(ProductSoftwareName), $($)
  841.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  842.         Debug-Output "ShellCode error"
  843.         goto ShellCodeError
  844.     endif
  845.     set RegistryErrorIndex = $($R0)
  846.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  847.         goto fatalregistry
  848.     endif
  849.     EndForListDo
  850.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  851.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  852.         $(ProductSoftwareName), FALSE
  853.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  854.         Debug-Output "ShellCode error"
  855.         goto ShellCodeError
  856.     endif
  857.     set RegistryErrorIndex = $($R0)
  858.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  859.         goto fatalregistry
  860.     endif
  861.     endif
  862.     goto end
  863. warning = +
  864.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  865.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  866.     goto ShellCodeError
  867.     endif
  868.     ifstr(i) $($R1) == "OK"
  869.     goto $(to)
  870.     else-ifstr(i) $($R1) == "CANCEL"
  871.     goto $(from)
  872.     else
  873.     goto "end"
  874.     endif
  875. nonfatalinfo = +
  876.     Set CommonStatus = STATUS_USERCANCEL
  877.     Set Severity = STATUS
  878.     goto nonfatalmsg
  879. nonfatal = +
  880.     Set Severity = NONFATAL
  881.     goto nonfatalmsg
  882. nonfatalmsg = +
  883.     ifstr(i) $(Error) == ""
  884.     Set Severity = NONFATAL
  885.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  886.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  887.         goto ShellCodeError
  888.     endif
  889.     set Error = $($R0)
  890.     endif
  891.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  892.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  893.     goto ShellCodeError
  894.     endif
  895.     ifstr(i) $($R1) == "OK"
  896.     goto $(from)
  897.     else
  898.     goto "end"
  899.     endif
  900. fatalregistry = +
  901.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  902.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  903.     goto ShellCodeError
  904.     endif
  905.     set Error = $($R0)
  906.     goto fatal
  907. fataldetect = +
  908.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  909.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  910.     Debug-Output "ShellCode error: cannot get an error string."
  911.     goto ShellCodeError
  912.     endif
  913.     set Error = $($R0)
  914.     Goto fatal
  915. fatal = +
  916.     ifstr(i) $(Error) == ""
  917.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  918.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  919.         goto ShellCodeError
  920.     endif
  921.     set Error = $($R0)
  922.     endif
  923.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  924.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  925.     goto ShellCodeError
  926.     endif
  927.     goto setfailed
  928. ShellCodeError = +
  929.     set DlgType      = "MessageBox"
  930.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  931.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  932.     set STF_MB_TYPE  = 1
  933.     set STF_MB_ICON  = 3
  934.     set STF_MB_DEF   = 1
  935.     ui start "Error Message"
  936.     goto setfailed
  937. setfailed = +
  938.     set CommonStatus = STATUS_FAILED
  939.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  940.     set OEM_ABANDON_ON = FALSE
  941.     goto abandon
  942.     endif
  943.     goto end
  944. end = +
  945.     goto term
  946. term = +
  947.     Return $(CommonStatus)
  948. [Install-Option]
  949.     set STF_VITAL = ""
  950.     ifstr(i) $(AddCopy) == "YES"
  951.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  952.     endif
  953.     ifstr(i) $(DoCopy) == "YES"
  954.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  955.        CopyFilesInCopyList
  956.     endif
  957.     ifstr(i) $(DoConfig) == "YES"
  958.     endif
  959.     Exit
  960. [Install-Update]
  961.    set STF_VITAL        = ""
  962.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  963.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  964. ;   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  965.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  966.    CopyFilesInCopyList
  967.    exit
  968. [Source Media Descriptions]
  969. ;    1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  970. ;    2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  971.     3  = "SMC SUPER DISK"  , TAGFILE = DISK.ID
  972. [ProductType]
  973. STF_PRODUCT  = Winnt
  974. STF_PLATFORM = I386
  975. [Files-Inf]
  976. 3,oemsetup.inf,  SIZE=1000,     RENAME=$(!UG_Filename)
  977. [Files-SMCISA]
  978. 3,SMC8000N.SYS , SIZE=36864
  979. [Files-SMC8003EA]
  980. 3,SMC8000N.SYS , SIZE=36864
  981. [Files-SMC8003WA]
  982. 3,SMC8000N.SYS , SIZE=36864
  983. [Files-SMC8013EPA]
  984. 3,SMC8000N.SYS , SIZE=36864
  985. [Files-SMC8013WPA]
  986. 3,SMC8000N.SYS , SIZE=36864
  987.  
  988. [LanguagesSupported]
  989.     ENG
  990. [OptionsTextENG]
  991.     SMC8216   = "SMC EtherCard Elite Ultra "
  992.     SMC8013   =    "SMC EtherCard Plus Elite "
  993.     SMC8013WPA = "SMC 8013WP/A EtherCard Plus Elite"
  994.     SMC8013EPA = "SMC 8013EP/A EtherCard Plus Elite"           
  995.  
  996. [FileConstantsENG]
  997. ProCaption   = "Windows NT Setup"
  998. ProCancel    = "Cancel"
  999. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1000.            "Are you sure you want to cancel copying files?"
  1001. ProCancelCap = "Network Setup Message"
  1002. ProText1     = "Copying:"
  1003. ProText2     = "To:"
  1004. FunctionTitle   = "SMC Adapter Card Setup"
  1005. ProductSoftwareDescription      = "SMC EtherCard Family Driver"
  1006. ProductHardwareDescription      = "SMC EtherCard Plus Elite/Ultra Series Adapter"
  1007. ProductHardwareDescriptionMCA   = "SMC "$(Option)" EtherCard Plus Elite"
  1008. ProductSoftwareTitle    = "SMC EtherCard Plus Elite Ultra Series Driver"
  1009. ProductHardwareTitle    = "SMC ISA EtherCard Series "
  1010. ;ProductHardwareTitleMCA = "SMC Micro Channel Adapter"
  1011. ProductHardwareTitleMCA = $(Option)" EtherCard Plus Elite"
  1012. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  1013. ShellCodeErrorText      = "Shell Code Error."
  1014. [DialogConstantsENG]
  1015. Help        = "&Help"
  1016. Exit        = "Cancel"
  1017. OK          = "OK"
  1018. HelpContext = ""
  1019. Continue    = "Continue"
  1020. Cancel      = "Cancel"
  1021. [FileDependentDlgENG]
  1022. Combo1Label = "&IRQ Level:"
  1023. Combo2Label = "&Memory Base Address:"
  1024. Combo3Label = "I/&O Port Address:"
  1025. DlgType = "MultiCombo"
  1026. DlgTemplate = "WD"
  1027. Caption = $(FunctionTitle)
  1028. Combo1List = $(IRQ_List)
  1029. Combo1Out  = $(IRQLevel)
  1030. Combo2List = $(WinBaseAddressHexList)
  1031. Combo2Out  = $(WinBaseAddress)
  1032. Combo3List = $(IOBaseAddressHexList)
  1033. Combo3Out  = $(IOBaseAddress)
  1034. ComboListItemsIn  = {Combo1List, Combo2List, Combo3List}
  1035. ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
  1036. EditTextIn = ""
  1037. EditTextLim = ""
  1038. NotifyFields = {NO, NO, NO}
  1039. HelpContext = $(!IDH_DB_OEMNADWD_INS)
  1040.  
  1041.  
  1042.  
  1043.